<?php
/**
 * Created by XM·Tan.
 * Motto: Who shuts love out, in turn shall be shut out from love.
 * Date: 2021/3/23 18:12
 */

namespace app\common\model\mysql;


class AdminRole extends BaseModel {

    /**
     * title 查询提条件表达式
     * @param $query
     * @param $value
     */
    public function searchRolenameAttr($query, $value) {
        $query->where('rolename', 'like', '%' . $value . '%');
    }

}